package dtoGoods

import doGoods "mxshop/app/mxshop_api/api/internal/domain/do/goods"

type GoodsFilter struct {
	PriceMin    int32    `form:"pmin" json:"priceMin,omitempty"`
	PriceMax    int32    `form:"pmax" json:"priceMax,omitempty"`
	IsHot       bool     `form:"ih" json:"isHot,omitempty"`
	IsNew       bool     `form:"in" json:"isNew,omitempty"`
	IsTab       bool     `form:"it" json:"isTab,omitempty"`
	TopCategory int32    `form:"c" json:"topCategory,omitempty"`
	Pages       int32    `form:"p" json:"pages,omitempty"`
	PagePerNums int32    `form:"pnum" json:"pagePerNums,omitempty"`
	KeyWords    string   `form:"q" json:"keyWords,omitempty"`
	Brand       int32    `form:"b" json:"brand,omitempty"`
	Orderby     []string `form:"orderby" json:"orderby,omitempty"`
}

type GoodsDTO struct {
	doGoods.GoodDO
}

type GoodDTOList struct {
	TotalCount int64       `json:"total,omitempty"` // 总数
	Items      []*GoodsDTO `json:"data"`            // 商品数据
}
